import Utils from "./utils";
import GameConst from "./GameConst"
export default class GameObject{
    constructor() {
        //super();
        this.sprite = null;
        this.isDestroyed = false;
        this.isWaitingForDestruction = false;
        this.isLocked = false;
        this.stage = Laya.stage;

    }
    canBeVisible(e) {
        return true;
    }
    update(e) { }
    destroy() {
        Utils.removeClip(this.sprite);
        this.sprite = null;
        this.isDestroyed = true;
    }
}
